package com.cans.factory.abstractfactory;

import com.cans.factory.simple.Phone;

/**
 * 小米手机 - 产品实现
 *
 * @author cans
 * @date 2024/2/17
 **/
public class MiPhone implements Phone {

    private Cpu cpu;

    public MiPhone(Cpu cpu) {
        this.cpu = cpu;
    }

    @Override
    public String information() {
        return "xiaomi usr CPU:" + cpu.getName();
    }
}
